package com.zsrt.java.day20161229.lh.homework.demo02;

public class Teacher {
	private int age;
	private double salary;
	
	
	public void setAge(int age){
		this.age=age;
	}
	
	public int getAge(){
		return age;
	}
	
	public void setSalary(double salary){
		this.salary=salary;
	}
	
	public double getSalary(){
		return salary;
		
	}
	
	public static void main(String[] args) {
		Teacher huanglaoshi=new Teacher();
		huanglaoshi.setAge(33);
		huanglaoshi.setSalary(1000000);
		int age=huanglaoshi.getAge();
		double salary=huanglaoshi.getSalary();
		System.out.println("黄老师的年龄："+age+"\n"+"黄老师的月薪："+salary);
		
	}
	
	

}
